{extend name="base" /}
{block name="body"}
<style>
    .layui-layout-admin .layui-footer {
        left: 0px !important;
    }

    .layui-body {
        left: 0px !important;
    }

    .layui-table td, .layui-table th {
        padding: 26px 25px;
        font-size: 20px;
    }
</style>
<div class="layui-body">
    <!--tab标签-->
    <div class="layui-tab layui-tab-brief">
        <div class="layui-tab-content">
            <button class="layui-btn layui-btn-danger layui-btn-big ajax-action" data-action="{:url('admin/order/clear_all',['cid'=>$cid])}">清空数据</button>
            <div class="layui-tab-item layui-show">
                <table class="layui-table">
                    <thead>
                    <tr>
                        <th style="width: 30px;">ID</th>
                        <th>用户姓名</th>
                        <th>用户手机</th>
                        <th>用户地址</th>
                        <th>用户ip</th>
                        <th>用户来源</th>
                        <th>下单时间</th>
                    </tr>
                    </thead>
                    <tbody>
                    {foreach name="order_list" item="vo"}
                    <tr>
                        <td>{$vo.id}</td>
                        <td>{$vo.name}</td>
                        <td>{$vo.phone}</td>
                        <td>{$vo.address}</td>
                        <td>{$vo.xdip}</td>
                        <td>{$vo.xdref}</td>
                        <td>{$vo.xdtime|date="Y-m-d H:i:s",###}</td>
                    </tr>
                    {/foreach}
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>
{/block}